package com.concerneyes.mine.TabActivity.serviceCentre;

import android.os.Bundle;

import com.concerneyes.R;

import common.AbsActivity;
import http.HttpAsyncTask;
import http.JsonMap;
import http.Url;
import util.ToastHelper;

/**
 * Created by Administrator on 2017/7/6 0006.
 */

public class DetailActivity extends AbsActivity {
    private String itemId;

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.activity_detail);
        itemId = getIntent().getExtras().getString("itemId");
    }

    /**
     * 产品分类列表
     */
    public void extensionImpl(String adress) {


        HttpAsyncTask http = new HttpAsyncTask() {

            @Override
            public void onStart(String taskId) {
            }

            @Override
            public void onFinish(String taskId, String response) {
                JsonMap data = JsonMap.parseJson(response);
                if (data == null) {
                    ToastHelper.getInstance()._toast(R.string.network_error_tip);
                    return;
                }

                if (data.getInt("code") == 200) {
                } else {
                    ToastHelper.getInstance()._toast(data.getString("msg"));
                }
            }
        };
        http.setDebug(true);
        http.excute(Url.BaseUrl + adress, null, "GET");
    }

}
